import request from '@/utils/request'

// 查询基金团队成员列表
export function listFundTeam(query) {
  return request({
    url: '/team/fundTeam/list',
    method: 'get',
    params: query
  })
}

// 查询基金团队成员详细
export function getFundTeam(id) {
  return request({
    url: '/team/fundTeam/' + id,
    method: 'get'
  })
}

// 保存基金团队成员
export function saveFundTeam(data) {
  return request({
    url: '/team/fundTeam/save',
    method: 'post',
    data: data
  })
}

// 删除基金团队成员
export function delFundTeam(id) {
  return request({
    url: '/team/fundTeam/' + id,
    method: 'delete'
  })
}

// 导出基金团队成员
export function exportFundTeam(query) {
  return request({
    url: '/team/fundTeam/export',
    method: 'get',
    params: query
  })
}

// 保存基金团队成员列表
export function saveTeamList(params) {
  return request({
    url: '/team/fundTeam/saveTeamList/' + params.pageNum + '/' + params.pageSize,
    method: 'post',
    data: params.list
  })
}
